]> dgit.raspbian.org Git - gnome-shell.git/commit
powerProfiles: Avoid warnings on missing power-profiles-daemon
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Oct 2022 11:04:18 +0000 (13:04 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Oct 2022 11:55:06 +0000 (13:55 +0200)
commitcbbc066d6fb566297a4e27b3fa744d89c69e4a8c
treedac8c290a7fb5192972f4a14807e3a7ed42a4931
parentea7b29e049d1478c301dbecec5d49cae8e528d7e
powerProfiles: Avoid warnings on missing power-profiles-daemon

GDBusProxy transparently handles the remote object appearing and
vanishing. It is therefore not an error if the service is not
running at the time the proxy is initialized, so we proceed and
try to read the list of profiles which is null in that case,
resulting in (harmless but annoying) warnings.

Avoid this by only reading the initial list of profiles if the
service has a name owner.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5992

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2518>
js/ui/status/powerProfiles.js